need to make this into a recursive function